<template>
  <div class="detail_container">
    <h3>{{ shop.name }}</h3>
    <h3>{{ shop.price }}</h3>
    <button @click="setGoodsPrice">点击商品价格</button>
  </div>
</template>

<script>
import { mapState, mapMutations } from "vuex";
export default {
  components: {},
  data() {
    return {};
  },
  methods: {
    ...mapMutations(["setGoodsPrice"]),
  },
  computed: {
    ...mapState(["shop"]),
  },
  created() {},
};
</script>

<style>
</style>